package com.xb.p17_intentdata;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

public class Activity3 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_3);


        Bundle bundle=new Bundle();
        String str="hello,"+getIntent().getExtras().getString("text1")+","+getIntent().getExtras().getString("text2");
        bundle.putString("result",str);

        Intent intent=new Intent();
        intent.putExtras(bundle);
        setResult(2,intent);
        finish();
    }
}